/**
 * CategoryServiceImpl.java
 */
package com.babek.business.service.impl;

import java.util.List;

import com.babek.business.dao.CategoryDao;
import com.babek.business.entity.Category;
import com.babek.business.service.CategoryService;

/**
 * @author aan
 * @Date Created Oct 14, 2011
 */
public class CategoryServiceImpl implements CategoryService {
	private CategoryDao categoryDao;

	/* (non-Javadoc)
	 * @see com.babek.business.service.CategoryService#getAllCategory()
	 */
	@Override
	public List<Category> getAllCategory() {
		// TODO Auto-generated method stub
		return categoryDao.getAllCategories();
	}

	/* (non-Javadoc)
	 * @see com.babek.business.service.CategoryService#removeByCode(java.lang.String)
	 */
	@Override
	public void removeByCode(String categoryCode) {
		// TODO Auto-generated method stub
		
	}

	/* (non-Javadoc)
	 * @see com.babek.business.service.CategoryService#save(com.babek.business.entity.Category)
	 */
	@Override
	public void save(Category cat) {
		// TODO Auto-generated method stub
		categoryDao.insertCategory(cat);

	}

	public CategoryDao getCategoryDao() {
		return categoryDao;
	}

	public void setCategoryDao(CategoryDao categoryDao) {
		this.categoryDao = categoryDao;
	}
	
	

}
